package testiranjeSoftvera.actions;

import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;

import javax.swing.KeyStroke;

import testiranjeSoftvera.GuiElements.GameDialog;

public class StartGameAction extends AbstractTestAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2783200788068349855L;

	public StartGameAction() {
		putValue(ACCELERATOR_KEY,
				KeyStroke.getKeyStroke(KeyEvent.VK_O, ActionEvent.CTRL_MASK));
		putValue(javax.swing.Action.NAME, "Start action");
		putValue(SHORT_DESCRIPTION, "Start action");
		putValue(SMALL_ICON, loadIcon("images/filenew.png"));
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		GameDialog gd = GameDialog.getInstance();
		gd.setVisible(true);
		
	}

}
